<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@include file="/include.inc.jsp" %>
<link href="${path}/styles/css/sys.css?t=${sysVersion}" rel="stylesheet" />
<script src="${path}/styles/js/sys/sys.js?t=${sysVersion}"></script>
<form id="advPhotoForm" action="${path}/sysBootScreen/doAdd" method="post" class="pageForm" data-toggle="validate" data-reload-navtab="true">
	<input id="id" name="sysBootScreen.id" value="${sysBootScreen.id}" type="hidden"/>
	<input id="imgUrl" name="sysBootScreen.img_url" value="${sysBootScreen.img_url }" type="hidden"/>
	<div id="login_info_bar">
		<table class="form-table">
			<tr>
				<td class="form-title">
					图片名称：
				</td>
				<td class="form-content">
					<input id="title" name="sysBootScreen.title" value="${sysBootScreen.title}" type="text" class="tc-input-text w" data-rule="required"/>
				</td>
			</tr>
			<%-- <tr>
				<td class="form-title">
					图片尺寸：
				</td>
				<td class="form-content">
					<input id="size" name="sysBootScreen.size" value="${sysBootScreen.size}" type="text" class="tc-input-text" />
				</td>
			</tr> --%>
			<tr>
				<td class="form-title">
					图片链接：
				</td>
				<td class="form-content">
					<input id="jump_url" name="sysBootScreen.jump_url" value="${sysBootScreen.jump_url}" type="text" class="tc-input-text" data-rule="required"/>
				</td>
			</tr>
			<tr>
				<td class="form-title">
					是否发布：
				</td>
				<td class="form-content" style="text-align: left;">
					<input type="radio" name="sysBootScreen.is_release" value="1" <c:if test="${empty sysBootScreen.is_release or sysBootScreen.is_release == 1}">checked="checked"</c:if>>是
					<input type="radio" name="sysBootScreen.is_release" value="0" <c:if test="${sysBootScreen.is_release == 0}">checked="checked"</c:if>>否
				</td>
			</tr>
			<tr>
				<td class="form-title">
					排序：
				</td>
				<td class="form-content">
					<c:if test="${sysBootScreen.show_number == null}">
						<input id="show_number" name="sysBootScreen.show_number" value="1" type="text" class="tc-input-text" style="width:80px;" data-rule="required"/>
					</c:if>
					<c:if test="${sysBootScreen.show_number != null}">
						<input id="show_number" name="sysBootScreen.show_number" value="${sysBootScreen.show_number }" type="text" class="tc-input-text" style="width:80px;" data-rule="required"/>
					</c:if>
					注意：数字越小，排序越靠前
				</td>
			</tr>
		</table>
	</div>
	<div class="bjui-footBar" style="position:absolute;right: 0px;bottom: 0px;border:none;">
	    <ul>
	        <li><button id="cancelBtn" class="btn btn-close" type="button">关闭</button></li>
	        <li><button id="saveBtn" class="btn btn-default" type="submit">保存</button></li>
	    </ul>
	</div>
</form>
<table class="form-table">
	<tr>
		<td class="form-title">
			图片：
		</td>
		<td class="form-content">
			<form id="form1" action="${path}/fileUpload" method="post" enctype="multipart/form-data">
				<div class="photo-add-div">
					<a href="javascript:void(0);" class="image-upload-a">
						<img id="showImg" alt="选择图片" src="${path}/${sysBootScreen.img_url}" class="adv-photo-img"/>
						<input id="file" name="file" type="file" class="image-upload" onchange="doUploadFile();"/>
					</a>
				</div>
			</form>
		</td>
	</tr>
</table>
